package com.wzy.service.impl;


import com.wzy.product.bean.Product;
import com.wzy.service.ProductService;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

@Service
public class ProductServiceImpl implements ProductService {

    @Override
    public Product getProductById(Long productID) {
        Product product = new Product();
        product.setId(productID);
        product.setPrice(new BigDecimal("99"));
        product.setProductName("苹果"+productID);
        product.setNum(2);

        return product;
    }
}
